package csu.edu.flatprogram.service;

import csu.edu.flatprogram.common.CommonResponse;
import csu.edu.flatprogram.entity.Account;
import csu.edu.flatprogram.entity.DonateGoods;

import java.util.List;

public interface AccountService {
    CommonResponse<Account> getAccountByUserid(String userid);

    CommonResponse<List<Account>> getAllAccounts();

    CommonResponse<List<DonateGoods>> getDonateGoodsByAccountId(String userid);

    CommonResponse<Account> addAccount(String userid, String password, String username,String sex, String phone, String address);

    CommonResponse<Account> updateAccountById(String userid, String password, String username,String sex, String phone, String address);

    CommonResponse<Account> deleteAccountById(String userid);

    CommonResponse<Account> insertAccount(Account account);

    CommonResponse<Account> updateAccount(Account account);

    CommonResponse<DonateGoods> getDonateGoodById(int goodsid);
}
